GetContentStorageUnit
TheGetContentStorageUnit
method returns a reference to the content storage unit for this drag-and-drop object.
ODStorageUnit GetContentStorageUnit ();
- return value
- A reference to the content storage unit.
DISCUSSION
When your part initiates a drag, you should first call theClear
method, then call this method and copy data from the drag item into the returned storage unit. The drag-and-drop object handles the creation and destruction of its content storage unit, so you must neither dispose of nor release the returned storage unit.You must not cache the returned storage unit; instead you must call this method whenever you need to access the content storage unit.
EXCEPTIONS
kODErrNoDragManager
- No platform-specific drag system service is available.
SEE ALSO
TheODDragAndDrop::Clear
method (page 189).
TheODStorageUnit
class (page 664).
"Data Configuration" on page 315 in OpenDoc Programmer's Guide.
"Initiating a Drag" on page 360 in OpenDoc Programmer's Guide.
Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help